﻿using System.Collections.Generic;
using Yamfinder.Data;

namespace Yamfinder.Service
{
    public interface IDataTypeService
    {
        IList<DataDictonaryEntry> Search(DataTypeSearchCriteria search);
        PaginatedList<DataDictonaryEntry> Search(DataTypeSearchCriteria search, int pageIndex, int pageSize);
        void ChangeIsRequired(string fieldName, bool value);
        void ChangeIsDisplayed(string fieldName, bool value);
        void Add(string fieldName, string type, bool isRequired, bool isDisplayed);
    }
}
